package com.liangwj.springbootdesignpatterns.structureTypePatterns.decorator.demo_1;
/**
 * <b>Description:</b> 实现了 ShapeDecorator类的实体装饰类 <br/>
 * @author Lingwenjun
 * @date 2019/1/29-11:05
 * @version 1.0
 */
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape decoratorShape) {
        super(decoratorShape);
    }

    @Override
    public void draw() {
        decoratorShape.draw();
        setRedBorder(decoratorShape);
    }

    public void setRedBorder(Shape decoratorShape) {
        System.out.println("Border Color : red");
    }
}
